﻿@model ApplicationUser

@{
    string imageUrl = "/img/no-avatar.png?w=100&h=100";
    
    //if(!String.IsNullOrWhiteSpace(Model.ImageUrl))
    //{
    //    imageUrl = Model.ImageUrl + "?w=100&h=100";
    //}
}

<li class="dropdown user user-menu">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
        <i class="glyphicon glyphicon-user"></i>
        <span>@Model.Name</span> <i class="caret"></i>
    </a>
    <ul class="dropdown-menu">
        <li class="user-header bg-light-blue">
            <img src="@imageUrl" class="img-circle avatar-user" />
            <p>
                <span>@Model.Name</span>
                <small>@Model.UserName</small>
            </p>
        </li>
        <li class="user-footer">
            <div class="pull-left">
                <a href="#" class="btn btn-default btn-flat">Thông tin</a>
            </div>
            <div class="pull-right">
                @using (Html.BeginForm("LogOff", "Account", new { area = "" }, FormMethod.Post, new { id = "logoutForm" }))
                {
                    @Html.AntiForgeryToken()

                    <button type="submit" class="btn btn-default btn-flat">Thoát</button>
                }
            </div>
        </li>
    </ul>
</li>

